﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DecisionFramework.Logging;
using DecisionFramework.Logging.Internal;

namespace Tests.DecisionFramework.Logging
{
    /// <summary>
    /// Provides test cases for LogService.
    /// </summary>
    [TestClass]
    public class LogServiceTests
    {
        [TestMethod]
        public void LogService_LogOperationalAppEvent_Successfully()
        {
            // arrange
            ILogService service = new EventViewerLogService();

            // act
            service.Operational["TestCase"].WriteAppEvent(
                new AppEvent
                {
                    WhatHappened = "Test case",
                    WhyDidItHappen = "LogEventTest",
                });

            // assert

        }
    }
}
